//
//  LYWebViewController.swift
//  微博
//
//  Created by liuerying on 16/6/2.
//  Copyright © 2016年 liuerying. All rights reserved.
//

import UIKit

class LYWebViewController: UIViewController {

    let webView = UIWebView()
    
    var urlString: String?
    
    
    override func loadView() {
        view = webView
    }
    
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        //加载页面
        let url = NSURL(string: urlString!)!
        let req = NSURLRequest(URL: url)
        webView.loadRequest(req)
    }
}
